const express = require('express');
const router = express.Router();
const ProductController = require('../controllers/product.controller');

// 获取商品列表
router.get('/', ProductController.getProducts);

// 获取单个商品详情
router.get('/:id_or_slug', ProductController.getProduct);

module.exports = router; 